import { Canvas, Story } from '@storybook/addon-docs'
import LinkTo from '@storybook/addon-links/react'

# slotPropGetter

- type: `function (date: Date) => {className?: string, style?: Object}`

Optionally provide a function that returns an object of className or style props to be applied to the the time-slot node.

**Caution!** Styles that change layout or position may break the calendar in unexpected ways.

<Canvas>
  <Story id="props--slot-prop-getter" />
</Canvas>
